﻿namespace Aurora.AI.Wiki.Domain.Domain.ChatApplications.Aggregates;

/// <summary>
/// 聊天记录
/// </summary>
public class ChatRecord
{
    public ChatRecord()
    {
    }

    public ChatRecord(string id, string applicationId, string question)
    {
        Id = id;
        ApplicationId = applicationId;
        Question = question;
        CreationTime = DateTime.Now;
    }

    public string Id { get; set; }

    /// <summary>
    /// 应用
    /// </summary>
    public string ApplicationId { get; set; }

    /// <summary>
    /// dialog id 
    /// </summary>
    public string DialogId { get; set; }
    /// <summary>
    /// 提问内容
    /// </summary>
    public string Question { get; set; }

    /// <summary>
    /// 图片资源 json 数组格式
    /// </summary>
    public string Images { get; set; }

    /// <summary>
    /// web search json 数组格式
    /// </summary>
    public string WebSearch { get; set; }
    /// <summary>
    /// 角色 user assistant system
    /// </summary>
    public string Role { get; set; }

    /// <summary>
    /// ai 类型 chat images
    /// </summary>
    public string AIType { get; set; }

    public string Creator { get; set; }

    public DateTime? CreationTime { get; set; }

    public string Modifier { get; set; }

    public DateTime? ModificationTime { get; set; }

    public string SourceFiles { get; set; }

    /// <summary>
    /// 视频信息 json
    /// </summary>
    public string Videos { get; set; }
}